package com.xiegang.apipassenger.remote;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.request.VerificationCodeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author xieGang
 * @description
 * @date 2023/3/2 20:51
 **/
@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {

    @RequestMapping( method = RequestMethod.POST,value = "/user")
    public ResponseResult loginOrRegister(@RequestBody VerificationCodeDto verificationCodeDto);

    @RequestMapping( method = RequestMethod.GET,value = "/user/{phone}")
    public ResponseResult getUesrByPhone(@PathVariable("phone") String passengerPhone);
}
